{% extends "base.html" %}
{% block title %}{{ title }}{% endblock %}

{% block content %}
  <form class="ui form" method="post">{% csrf_token %}
    <div class="field">
      {{ form.title }}
    </div>
    <div class="field">
      {{ form.description }}
    </div>
    <div class="field">
      {{ form.wiki }}
    </div>
    <div class="field">
      <div class="ui clearing segment">
        <button class="ui right floated positive button">
          <i class="save icon"></i> Save Post
        </button>
      </div>
    </div>
  </form>
{% endblock %}

{% block js %}
  <script>
    $('form [name="title"]').attr({'placeholder': 'Post Title'});
    $('.ui.menu .ui.dropdown.item').dropdown();
  </script>
{% endblock %}
